package com.newland.mesdk.demo.moduleinterface;

import java.util.concurrent.TimeUnit;

import android.graphics.Bitmap;

import com.newland.mtype.module.common.printer.FontSettingScope;
import com.newland.mtype.module.common.printer.FontType;
import com.newland.mtype.module.common.printer.LiteralType;
import com.newland.mtype.module.common.printer.PrintContext;
import com.newland.mtype.module.common.printer.PrinterResult;
import com.newland.mtype.module.common.printer.PrinterStatus;
import com.newland.mtype.module.common.printer.ThrowType;
import com.newland.mtype.module.common.printer.WordStockType;

/**
 * Created by HJP on 2015/8/12.
 */
public interface PrinterInterface {
	public PrinterResult checkThenPrint(PrintContext printContext, byte[] data, long timeout, TimeUnit timeunit);

	public PrinterStatus getStatus();

	public void init();

	public void paperThrow(ThrowType type, int distance);// 打印机走纸指令

	public void printBitMap(int position, Bitmap bitmap);

	public PrinterResult printString(String data);

	public PrinterResult printScript(String data);

	public void setDensity(int value);

	public void setFontType(LiteralType literalType, FontSettingScope settingScope, FontType fontType);

	public void setLineSpace(int value);

	public void setWordStock(WordStockType type);
}
